package edu.mis.modules.goods;

import java.util.List;

import edu.mis.model.Goods;

public class GoodsService {
	private Goods dao = Goods.dao;
	
	public boolean saveGoods(Goods goods) {
		return goods.save();
	}
	
	public List<Goods> findAllGoods() {
		return dao.findAll();
	}
	
	public boolean updateGoods(Goods goods) {
		return goods.update();
	}
	
	public boolean deleteById(int id) {
		return dao.deleteById(id);
	}
	
}
